﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using MEF_Test.Contracts;

namespace MEF_Test.Bricks.Actions
{
    /// <summary>
    /// A Data Template Selector used to select the template to apply to node actions
    /// </summary>
    public class ActionTemplateSelector : DataTemplateSelector
    {
        public override System.Windows.DataTemplate SelectTemplate(object item, System.Windows.DependencyObject container)
        {
            return ((INodeAction)item).Template;
        }
    }
}
